﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace EverydayTips
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Boolean createdNew;
            System.Threading.Mutex instance = new System.Threading.Mutex(true, "EverydayTips", out createdNew);
            if (createdNew)
            {
                Application.Run(new Form_mainform());
                instance.ReleaseMutex();
            }
            else
            {
                Application.Exit();
            }
        }
    }
}
